package com.itheima.atomic;

import java.util.concurrent.atomic.AtomicInteger;

public class Demo02 {


    public static void main(String[] args) {
        AtomicInteger i = new AtomicInteger(10);
        i.compareAndSet(9,12);
        System.out.println(i.get());


    }
}
